package com.umgsai.thread.thread35;

import java.io.PipedOutputStream;

public class ThreadWrite extends Thread {
	private WriteData writeData;
	private PipedOutputStream out;
	
	public ThreadWrite(WriteData writeData, PipedOutputStream out) {
		super();
		this.out = out;
		this.writeData = writeData;
	}
	
	@Override
	public void run() {
		writeData.writeMethod(out);
	}
}
